package com.ruoyi.OrderGoods.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.domain.BaseEntity;
import java.util.Date;

/**
 * 订单商品中间表 xyb_order_goods
 * 
 * @author ruoyi
 * @date 2019-08-08
 */
public class OrderGoods extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** id */
	private Integer id;
	/** 订单id */
	private Integer orderId;
	/** 商品id */
	private Integer goodsId;
	/** 数量 */
	private Integer num;
	/** 是否有效 1有效 0无效 */
	private Integer valid;
	/** 创建时间 */
	private Date creactDate;
	/** 修改时间 */
	private Date modifyDate;
	/** 修改人 */
	private Integer modifyBy;

	public void setId(Integer id) 
	{
		this.id = id;
	}

	public Integer getId() 
	{
		return id;
	}
	public void setOrderId(Integer orderId) 
	{
		this.orderId = orderId;
	}

	public Integer getOrderId() 
	{
		return orderId;
	}
	public void setGoodsId(Integer goodsId) 
	{
		this.goodsId = goodsId;
	}

	public Integer getGoodsId() 
	{
		return goodsId;
	}
	public void setNum(Integer num) 
	{
		this.num = num;
	}

	public Integer getNum() 
	{
		return num;
	}
	public void setValid(Integer valid) 
	{
		this.valid = valid;
	}

	public Integer getValid() 
	{
		return valid;
	}
	public void setCreactDate(Date creactDate) 
	{
		this.creactDate = creactDate;
	}

	public Date getCreactDate() 
	{
		return creactDate;
	}
	public void setModifyDate(Date modifyDate) 
	{
		this.modifyDate = modifyDate;
	}

	public Date getModifyDate() 
	{
		return modifyDate;
	}
	public void setModifyBy(Integer modifyBy) 
	{
		this.modifyBy = modifyBy;
	}

	public Integer getModifyBy() 
	{
		return modifyBy;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("goodsId", getGoodsId())
            .append("num", getNum())
            .append("valid", getValid())
            .append("creactDate", getCreactDate())
            .append("modifyDate", getModifyDate())
            .append("createBy", getCreateBy())
            .append("modifyBy", getModifyBy())
            .toString();
    }
}
